package cn.com.tom.service.impl;

import cn.com.tom.bean.Contact;
import cn.com.tom.bean.ContactParams;
import cn.com.tom.bean.ContactResult;
import cn.com.tom.dao.impl.ContactDaoImpl;
import cn.com.tom.service.ContactService;

import java.util.List;

public class ContactServiceImpl extends BaseServiceImpl<Contact> implements ContactService {

    public ContactResult list(ContactParams contactParams) {
        ContactDaoImpl contactDao = (ContactDaoImpl) dao();
        return contactDao.list(contactParams);
    }

    @Override
    public boolean read(Integer id) {
        return ((ContactDaoImpl) dao()).read(id);
    }
}
